export interface PaginationConfig {
  pageSize: number;
  current: number;
}

type CallbackFun = (error?: any) => void;

export interface SessionType {
  // 用户登入留下的验证信息
  username?: string;
  userId?: number;
  // 用户注册的验证码
  userCode?: string;
  save: (callbackFun: CallbackFun) => void;
  regenerate: (callbackFun: CallbackFun) => void;
}
